import {defineStore} from "pinia";
import top1 from "@/assets/top1.jpg";
export const group_t2Store=defineStore("group_t2Store",{
    state(){
        return {
            shopList:[
                {id:1,name:'摇摇马',price:26.66,imgSrc:top1,message:"安全，舒适，好玩"}
        ]
        }
    },
    actions:{
        getProductById(id:number){
            return this.shopList.find(item=>item.id===id);
        }
    }
})